package org.lanqiao.oa.service;

import com.baomidou.mybatisplus.service.IService;
import org.lanqiao.oa.mapper.Role;

public interface RoleService extends IService<Role> {

    /**
     * 添加角色
     * @param role
     * @return
     */
    boolean addRole(Role role);

    /**
     * 根据id删除角色
     * @param ids
     * @return
     */
    Boolean deleteRole(String[] ids);

    /**
     * 给角色分配权限
     * @param permissionIds
     * @param roleId
     * @return
     */
    boolean assignPermission(String[] permissionIds,String roleId);

}
